package testmy;

/**
 * Created by Germmy on 2018/3/31.
 */
public enum Light {

    RED(1),GREEN(3),YELLOW(2);

    private int nCode;

    private Light ( int _nCode){
        this.nCode=_nCode;
    }

    @Override
    public String toString() {
        return String.valueOf(this.nCode);
    }
}
